<table class="table table-striped table-bordered table-hover" border="4" id="datatable">
    <thead>
    <tr>
        <!-- <th class="text-center"></th> -->
        <th class="text-center">门店</th>
        <th class="text-center">日实收</th>
        <th class="text-center">月实收累计</th>
        <th class="text-center">月毛利</th>
        <th class="text-center">月实收累计(万元)</th>
        <th class="text-center">计划</th>
        <th class="text-center">月完成度</th>
    </tr>
    </thead>
    <tbody>
    @foreach($report["order"] as $_report)
        <tr class="text-center">
            <td>{{$_report['shop_name']}}</td>
            <td>{{$_report['day_amount']}}</td>
            <td>{{$_report['mon_amount']}}</td>
            <td>{{$_report['mon_amount']==0?'':round((($_report['mon_amount']-$_report['chengben_amount'])/$_report['mon_amount'])*100,2)."%"}}</td>
            <td>{{round($_report['mon_amount']/10000,2)}}</td>
            <td>{{$_report['jihu']}}</td>
            <td>{{$_report['jihu']==0?'':round((round($_report['mon_amount']/10000,2)/$_report['jihu'])*100,2)."%"}}</td>
        </tr>
    @endforeach
    </tbody>
</table>     

<table class="table table-striped table-bordered table-hover" border="4" id="datatable">
    <thead>
    <tr>
        <!-- <th class="text-center"></th> -->
        <th class="text-center">供应商</th>
        <th class="text-center">日入库金额</th>
        <th class="text-center">月入库金额</th>
        <th class="text-center">月入库金额(万元)</th>
    </tr>
    </thead>
    <tbody>
    @foreach($report["storage"] as $_report)
        <tr class="text-center">
            <td>{{$_report['name']}}</td>
            <td>{{round($_report['day_amount']/100,2)}}</td>
            <td>{{round($_report['mon_amount']/100,2)}}</td>
            <td>{{round($_report['mon_amount']/1000000,2)}}</td>
        </tr>
    @endforeach
    </tbody>
</table>     